import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/views/Login'
import Message from '@/views/Message'
import Upload from '@/views/Upload'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: Login
  },
  {
    path: '/msg',
    name: 'message',
    component: Message
  },
  {
    path: '/upload',
    name: 'upload',
    component: Upload
  }
]

const router = new VueRouter({
  routes
})

export default router
